package com.fifth.apartment.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

@Schema(description = "配套信息表")
@TableName(value = "facility")
@Data
@ApiModel(value="facilityInfo对象", description="配置信息表")
public class FacilityInfo implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(description = "配置信息表")
    @ApiModelProperty(value = "配置id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "配置类型")
    @Schema(description = "配套所属对象类型")
    @TableField(value = "type")
    private Long type;

    @ApiModelProperty(value = "配置名称")
    @Schema(description = "名称")
    @TableField(value = "name")
    private String name;

    @ApiModelProperty(value = "配置图标")
    @Schema(description = "图标")
    @TableField(value = "icon")
    private String icon;

}